package com.nj.api.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.nj.api.entity.User;

import java.util.Map;

public interface UserService extends IService<User> {

    boolean checkExists(String phone);

    Map register(String phone, String password, String code);

    void checkData(String phone, String password, String code);

    User login(String phone, String password);

    User getUserByPhone(String phone);
}
